package com.backstage.entity.po;


import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangkun
 * @since 2017-11-16
 */
@TableName("sys_user")
public class SysUser extends BasePoEntity implements Serializable{


	private static final long serialVersionUID = 1L;
	/**
     * 主键
     */
    @TableField(value = "id")
	private String id;
    /**
     * 账号
     */
    @TableField(value = "usercode")
	private String usercode;
    /**
     * 姓名
     */
    @TableField(value = "username")
	private String username;
    /**
     * 密码
     */
    @TableField(value = "password")
	private String password;
    /**
     * 盐
     */
	@TableField(value = "salt")
	private String salt;
    /**
     * 账号是否锁定，1：锁定，0未锁定
     */
	@TableField(value = "locked")
	private String locked;
	/**
	 * 菜单
	 */
	@TableField(exist=false)
	private List<SysPermission> menus;
	/**
	 * 快捷菜单
	 */
	@TableField(exist=false)
	private List<SysPermission> shortcutMenu;
	/**
	 * 权限
	 */
	@TableField(exist=false)
	private List<SysPermission> permissions;
	
	
	public List<SysPermission> getShortcutMenu() {
		return shortcutMenu;
	}

	public void setShortcutMenu(List<SysPermission> shortcutMenu) {
		this.shortcutMenu = shortcutMenu;
	}

	public List<SysPermission> getMenus() {
		return menus;
	}

	public void setMenus(List<SysPermission> menus) {
		this.menus = menus;
	}

	public List<SysPermission> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<SysPermission> permissions) {
		this.permissions = permissions;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsercode() {
		return usercode;
	}

	public void setUsercode(String usercode) {
		this.usercode = usercode;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getLocked() {
		return locked;
	}

	public void setLocked(String locked) {
		this.locked = locked;
	}


	@Override
	public String toString() {
		return "SysUser{" +
			", id=" + id +
			", usercode=" + usercode +
			", username=" + username +
			", password=" + password +
			", salt=" + salt +
			", locked=" + locked +
			"}";
	}
}
